import turtle as t

sides = int(t.numinput("边数", "嵌套螺旋线有几条边？(2~5)",
                       4, 2, 5))
colors = "red,orange,blue,green,purple".split(',')
t.title(10)
t.pencolor('red')
for m in range(100):
    t.penup()
    t.forward(m * 4)
    t.pendown()
    t.dot()
    t.right(360 / sides + 2)